package com.fyl.security.anno;

import com.fyl.security.OAuthConfiguration;
import com.fyl.security.OAuthServiceRegistrar;
import com.fyl.security.service.OAuthService;
import org.springframework.context.annotation.Import;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

@Target(TYPE)
@Retention(RUNTIME)
@Import({OAuthConfiguration.class, OAuthServiceRegistrar.class})
public @interface EnableOAuth {
    Class<? extends OAuthService> value();
}
